package com.mszlu.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mszlu.blog.common.Result;
import com.mszlu.blog.entity.Article;
import com.mszlu.blog.entity.dto.ArticleDto;
import com.mszlu.blog.entity.request.ArticlePage;

import java.util.List;

public interface ArticleService extends IService<Article> {
    Result viewsById(Long id);

    Result pulish(ArticleDto articleDto);

    Result<List> getPage(ArticlePage articlePage);

    Result hot();

    Result newArticles();

    Result listArchives();

    Result getPage2(ArticlePage articlePage);
}
